package com.ruoyi.machine.advanced.repair.apply.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 设备维修申请表，储存设备维修申请信息
 * machine_repair_apply
 */
public class RepairApply extends BaseEntity {
    /**
     * 设备维修申请编号
     */
    @NotNull(message = "设备维修申请编号不能为空")
    @ApiModelProperty(value = "设备维修申请编号", required = true)
    private String repairApplyId;
    /**
     * 机器编号
     */
    @NotNull(message = "机器编号不能为空")
    @ApiModelProperty(value = "机器编号", required = true)
    private String machineId;
    /**
     * 机器名称
     */
    private String machineName;
    /**
     * 申请者编号
     */
    @NotNull(message = "申请者编号不能为空")
    @ApiModelProperty(value = "申请者编号", required = true)
    private String staffId;
    /**
     * 申请者名称
     */
    private String staffName;
    /**
     * 故障内容
     */
    private String faultContent;
    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp repairApplyTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 删除标志
     */
    private String deleteFlag;

    public String getRepairApplyId() {
        return repairApplyId;
    }

    public void setRepairApplyId(String repairApplyId) {
        this.repairApplyId = repairApplyId;
    }

    public String getMachineId() {
        return machineId;
    }

    public void setMachineId(String machineId) {
        this.machineId = machineId;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getFaultContent() {
        return faultContent;
    }

    public void setFaultContent(String faultContent) {
        this.faultContent = faultContent;
    }

    public Timestamp getRepairApplyTime() {
        return repairApplyTime;
    }

    public void setRepairApplyTime(Timestamp repairApplyTime) {
        this.repairApplyTime = repairApplyTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
}
